using System;
using System.Collections.Generic;
using Castle.ActiveRecord;

namespace Library.Core.Model
{
    [ActiveRecord(Lazy = true)]
    public class ProductCategory
    {
        [PrimaryKey(PrimaryKeyType.Native, ColumnType = "Int32")]
        public virtual int Id { get; set; }

        [Property(ColumnType = "String", Length = 64)]
        public virtual string Name { get; set; }

        [Property(ColumnType = "String", Length = 512)]
        public virtual string Description { get; set; }

        [HasMany(typeof (Product))]
        public virtual IList<Product> Products { get; set; }
    }
}
